//
// Created by hps on 24-4-19.
//

#ifndef ADDNOTEBOOKDIALOG_H
#define ADDNOTEBOOKDIALOG_H

#include "HeadFiles.h"
#include "LineInputer.h"
#include "ChooseOrCancelButton.h"
#include "DataDef.h"
#include "Config.h"

namespace hps {

class AddNoteBookDialog: public QDialog {
Q_OBJECT
public:
    AddNoteBookDialog(AddNoteBookData* resData);
    AddNoteBookDialog();
    void init();
    void setUi();
    void rspFunc();
public slots:
    void clickedOk();
    void clickedCansel();
    void clickedPathButton();
private:
    // 整个样式结构
    QVBoxLayout *m_layout;
    AddNoteBookData *m_resData;

    // 获取NoteBook名字部分
    LineInputer *m_bookNameInputer;

    // 获取路径部分
    LineInputer *m_bookPathInputer;
    QPushButton *m_bookPathButton;

    // 获取描述
    LineInputer *m_informationInputer;

    // 确定或取消按钮
    ChooseOrCancelButton *m_opcButtons;

};

} // hps

#endif //ADDNOTEBOOKDIALOG_H
